package com.sright.bcard.enterprise.dal.dao.impl;

import com.sright.bcard.common.service.share.base.dao.BaseDAOImpl;
import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.enterprise.dal.dao.IndustryDAO;
import com.sright.bcard.enterprise.dal.entity.IndustryDO;
import com.sright.bcard.enterprise.dal.mapper.IndustryDOMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class IndustryDAOImpl extends BaseDAOImpl<IndustryDO> implements IndustryDAO {

    @Resource
    private IndustryDOMapper industryDOMapper;

    @Override
    protected BaseMapper<IndustryDO> getObjMapper() {
        return industryDOMapper;
    }

    @Override
    public List<IndustryDO> selectAll() {
        return industryDOMapper.selectAll();
    }

    @Override
    public List<IndustryDO> selectByType(Integer type) {
        return industryDOMapper.selectByType(type);
    }
}
